/* WordPress Spider Monitor - 现代化蓝白配色界面 */

/* 全局样式 */
.wp-spider-monitor-container {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 头部区域 */
.spider-monitor-header {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    color: white;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.15);
    position: relative;
    overflow: hidden;
}

.spider-monitor-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.header-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 8px 0 0 0;
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* 横向模块化仪表板布局 */
.horizontal-dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
}

/* 主要统计区域 */
.main-stats-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    align-items: start;
}

/* 大卡片样式 */
.large-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.large-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 小卡片组 */
.small-cards-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.small-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.small-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* 功能模块区域 */
.features-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.feature-card:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #3b82f6;
}

/* 数据展示区域 */
.data-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.data-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.data-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 卡片头部样式 */
.card-header {
    padding: 24px 24px 0 24px;
    border-bottom: 1px solid #f3f4f6;
    margin-bottom: 20px;
}

.large-card .card-header {
    padding: 28px 28px 0 28px;
}

.small-card .card-header {
    padding: 20px 20px 0 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.small-card .card-title {
    font-size: 16px;
    font-weight: 600;
}

.card-content {
    padding: 0 24px 24px 24px;
}

.large-card .card-content {
    padding: 0 28px 28px 28px;
}

.small-card .card-content {
    padding: 0 20px 20px 20px;
}

/* 头部左右布局 */
.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 统计摘要 */
.stats-summary {
    display: flex;
    gap: 24px;
    margin-top: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    line-height: 1;
}

/* 蜘蛛列表 */
.spider-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.spider-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f3f4f6;
}

.spider-item:last-child {
    border-bottom: none;
}

.spider-name {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.spider-count {
    font-size: 16px;
    font-weight: 700;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

/* 功能卡片样式 */
.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.feature-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

/* 卡片控制区域 */
.card-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* 通知图标 */
.notification-icon {
    font-size: 18px;
    color: #f59e0b;
}

/* 无数据状态 */
.no-data-message {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-style: italic;
}

.no-data-message p {
    margin: 0;
    font-size: 14px;
}

/* 蜘蛛数统计卡片 */
.spider-stats-card {
    min-height: 300px;
}

.stats-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.metric-item {
    text-align: center;
    flex: 1;
}

.metric-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.metric-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

/* 活跃蜘蛛爬虫卡片 */
.active-spiders-card {
    min-height: 300px;
}

.spider-activity-chart {
    height: 200px;
    margin-bottom: 16px;
}

/* 设置建议卡片 */
.settings-suggestion-card {
    min-height: 300px;
}

.suggestion-illustration {
    text-align: center;
    margin-bottom: 16px;
}

.server-illustration {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.server-rack {
    width: 40px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    display: inline-block;
    margin: 0 4px;
    position: relative;
}

.server-rack::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.server-rack:nth-child(2)::after {
    top: 16px;
}

.server-rack:nth-child(3)::after {
    top: 24px;
}

.person-icon {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
}

.suggestion-text {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 16px;
    text-align: center;
}

.explore-btn {
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.explore-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

/* 信息卡片 */
.info-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    min-height: 120px;
}

.info-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.info-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.info-icon {
    font-size: 20px;
    color: #3b82f6;
}

.info-content {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* 热门路径卡片 */
.popular-paths-card {
    min-height: 350px;
}

.paths-visualization {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}

.pie-chart-container {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.paths-table {
    flex: 1;
}

/* 热门文章卡片 */
.popular-articles-card {
    min-height: 350px;
}

.articles-table {
    margin-bottom: 16px;
}

/* 链接可访问性卡片 */
.link-accessibility-card {
    min-height: 350px;
}

.status-codes-table {
    margin-bottom: 16px;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
}

.data-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
    font-size: 12px;
}

.data-table tr:hover {
    background: #f9fafb;
}

.no-data {
    text-align: center;
    color: #9ca3af;
    font-style: italic;
}

/* 图表控制区域 */
.chart-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.time-selector {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    background: white;
    cursor: pointer;
}

.view-more-link {
    font-size: 12px;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.view-more-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 底部信息 */
.dashboard-footer {
    text-align: center;
    padding: 24px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 32px;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
}

.brand-icon {
    font-size: 18px;
    color: #f59e0b;
}

.footer-version {
    font-size: 14px;
    color: #6b7280;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-link {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
}

.footer-link:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* 区域标题 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.1);
}

.section-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    border-radius: 8px;
}

/* 概览区域 */
.overview-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.overview-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.overview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.overview-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.overview-card.visits::before {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
}

.overview-card.spiders::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.overview-card.pages::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 12px;
}

.overview-card.visits .card-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.overview-card.spiders .card-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.overview-card.pages .card-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.card-content {
    position: relative;
}

.card-value {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 4px 0;
    line-height: 1;
}

.card-label {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
}

.card-status.active {
    color: #059669;
}

.card-status.inactive {
    color: #dc2626;
}

.card-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.card-status.active .status-dot {
    background: #10b981;
}

.card-status.inactive .status-dot {
    background: #ef4444;
}

/* 图表区域 */
.chart-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.chart-container {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 蜘蛛活动区域 */
.spiders-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.spiders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spider-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.spider-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateX(4px);
}

.spider-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.spider-avatar.google {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
}

.spider-avatar.bing {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.spider-avatar.baidu {
    background: linear-gradient(135deg, #2932e1 0%, #1e1e8f 100%);
}

.spider-avatar.other {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.spider-info {
    flex: 1;
    min-width: 0;
}

.spider-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 4px 0;
}

.spider-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #64748b;
    margin: 0 0 4px 0;
}

.spider-time {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
}

.spider-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 80px;
}

.progress-bar {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 3px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shimmer 2s infinite;
}

.progress-text {
    font-size: 10px;
    color: #64748b;
    font-weight: 600;
}

/* 快速操作区域 */
.quick-actions-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    cursor: pointer;
}

.quick-action:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
    transform: translateX(4px);
    text-decoration: none;
    color: inherit;
}

.action-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    flex-shrink: 0;
}

.action-content {
    flex: 1;
}

.action-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 2px 0;
}

.action-desc {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-stats-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .data-section {
        grid-template-columns: 1fr 1fr;
    }
    
    .stats-summary {
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .features-section {
        grid-template-columns: 1fr;
    }
    
    .data-section {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f3f4f6;
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-label {
        margin-bottom: 0;
    }
    
    .card-header {
        padding: 20px 20px 0 20px;
    }
    
    .card-content {
        padding: 0 20px 20px 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .horizontal-dashboard {
        gap: 20px;
    }
    
    .main-stats-section {
        gap: 16px;
    }
    
    .features-section {
        gap: 16px;
    }
    
    .data-section {
        gap: 16px;
    }
    
    .card-header {
        padding: 16px 16px 0 16px;
    }
    
    .card-content {
        padding: 0 16px 16px 16px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .card-controls {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .header-right {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.stat-icon.visits {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.stat-icon.spiders {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.stat-icon.pages {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-title {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin: 0;
}

.stat-value {
    font-size: 36px;
    font-weight: 800;
    color: #1e293b;
    margin: 8px 0;
    line-height: 1;
}

.stat-change {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* 图表容器 */
.chart-container {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 32px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.chart-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 4px 0 0 0;
}

/* 蜘蛛列表 */
.spider-list {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-bottom: 32px;
}

.spider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.spider-item:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.spider-item:last-child {
    margin-bottom: 0;
}

.spider-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.spider-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.spider-avatar.google {
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
}

.spider-avatar.bing {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
}

.spider-avatar.baidu {
    background: linear-gradient(135deg, #2932e1 0%, #1e1e8f 100%);
}

.spider-avatar.other {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

.spider-details h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.spider-details p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.spider-stats {
    display: flex;
    align-items: center;
    gap: 20px;
}

.spider-count {
    text-align: center;
}

.spider-count-value {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.spider-count-label {
    font-size: 12px;
    color: #64748b;
    margin: 0;
}

/* 进度条 */
.progress-bar {
    width: 120px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: progress-shimmer 2s infinite;
}

@keyframes progress-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 功能模块 */
.feature-modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.feature-module {
    background: white;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.feature-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-module:hover::before {
    opacity: 1;
}

.feature-module:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 20px;
}

.feature-icon.monitoring {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

.feature-icon.settings {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.feature-icon.reports {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.feature-icon.upgrade {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 12px 0;
}

.feature-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.feature-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* 状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.status-indicator.active {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.status-indicator.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: #10b981;
}

.status-dot.inactive {
    background: #ef4444;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.empty-state-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .wp-spider-monitor-container {
        padding: 16px;
    }
    
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-modules {
        grid-template-columns: 1fr;
    }
    
    .spider-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .spider-stats {
        width: 100%;
        justify-content: space-between;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: #3b82f6;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}